<?php
	require_once $_SERVER['DOCUMENT_ROOT'] . '/SAGER/logic/factory/CommandFactory.php';
	
	error_reporting (E_ALL ^ E_NOTICE);
	
	$debug = $_SESSION['debug'];
	
	class PresenterCreateAccount{
		
		public function __construct() {}
		
		public function clickCreateAccount ($pk_number, $type, $name, $description) {
			
			$command = CommandFactory :: createCommandCreateAccount ($pk_number, $type, $name, $description);
			
			$command -> execute();		
			return $command->getResult();
		
		}	
	}
?>